import { Injectable } from '@nestjs/common';
import { userInfoCenterSync } from 'src/userInfoCenterSync.entity';
import { DataSource } from 'typeorm';

@Injectable()
export class PanelService {
    constructor(
        private dataSource: DataSource,
      ) {}

      async userCenter(): Promise<any>{
        const count = await this.dataSource.manager.findAndCount(userInfoCenterSync);
        console.log(count);
        return count;
      }
}
